﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LsKeyboardCore
{
    public class KeyBoardAppearance
    {
        private static Font _font= null;

        /// <summary>
        /// 键盘文本颜色
        /// </summary>
        public static Color ForeColor = Color.DimGray;
        /// <summary>
        /// 深度灰
        /// </summary>
        public static Color KeyBoardBackColor = Color.White;
        /// <summary>
        /// 鼠标按下
        /// </summary>
        public static Color KeyBoardMouseDownBackColor = Color.LightBlue;

        /// <summary>
        /// 键鼠标进入
        /// </summary>
        public static Color KeyBoardKeyMouseEnterBackColor = ColorUtil.Light(Color.LightGray, 0.15f);
        /// <summary>
        /// 特殊键鼠标进入
        /// </summary>
        public static Color KeyBoardControlKeyMouseEnterBackColor = ColorUtil.Light(Color.LightGray, 0.05f);

        /// <summary>
        /// 特殊键
        /// </summary>
        public static Color KeyBoardControlKeyBackColor = ColorUtil.Light(Color.LightGray, 0.15f);
        /// <summary>
        /// 键盘背景色
        /// </summary>
        public static Color KeyBoardFormBackColor = Color.LightGray;


        /// <summary>
        /// 黑体, 18
        /// </summary>
        public static Font GetFont()
        {
            if (_font == null)
            {
                try
                {
                    _font = new Font("黑体", 25);
                }
                catch (Exception)
                {
                    _font = new Font("黑体", 25);
                }
            }
            return _font;
        }
    }
}
